/**
 * [717] 1 比特与 2 比特字符
 *
 * @format
 * @lc app=leetcode.cn id=717 lang=javascript
 */

// @lc code=start
/**
 * @param {number[]} bits
 * @return {boolean}
 */
var isOneBitCharacter = function (bits) {
    let [i, flag] = [0, true]
    while (i < bits.length) bits[i] == 1 ? ((i += 2), (flag = false)) : (i++, (flag = true))
    return flag
}
// @lc code=end
